﻿using System;
using System.Windows;
using System.Windows.Data;

namespace Gmantis.Controls
{
    public class HierarchicalDataTemplate : DataTemplate
    {
        // Fields
        private Binding _itemsSource;
        private DataTemplate _itemTemplate;

        // Properties
        public Binding ItemsSource
        {
            get
            {
                return this._itemsSource;
            }
            set
            {
                if (this._itemsSource != value)
                {
                    this._itemsSource = value;
                }
            }
        }

        public DataTemplate ItemTemplate
        {
            get
            {
                return this._itemTemplate;
            }
            set
            {
                if (this._itemTemplate != value)
                {
                    this._itemTemplate = value;
                }
            }
        }
    }
}
